package com.goal98

import com.goal98.service.MatchService

class SoccerMatchCustomController {

    MatchService matchService

    def upcoming = {

        def matchList = matchService.upcomingMatch()
        render(view:'/soccerMatch/upcoming', 
                model:[
                        soccerMatchInstanceList:matchList,
                        soccerMatchInstanceTotal: SoccerMatch.count()
                ])
    }
}
